<?php
abstract class Territory 
{
	private $id = null;
	private $name;
	private $abbr;
	private $posX;
	private $posY;
	private $neighbours = array();
	private $unitPos = array();
	
	function __construct($name, $abbr, $posX, $posY, $neighbours, $unitPos)
	{
		$this->name = $name;
		$this->abbr = $abbr;
		$this->posX = $posX;
		$this->posY = $posY;
		$this->neighbours = $neighbours;
		$this->unitPos = $unitPos;
	}
	
	public function hasNeighbour($territory)
	{
		//return (in_array($territory, $this->neighbours)) ? true : false;
		return true;
	}
	
	public function getID()
	{
		return $this->id;
	}
	
	public function getName()
	{
		return $this->name;
	}

}
?>